package lab02.Test35;

public class Test {
    public static void main(String[] args) {
        Manager manager=new Manager();
        manager.name="zhang";
        manager.salary=150;
        Salesman salesman=new Salesman();
        salesman.name="li";
        salesman.salary=120;
        salesman.increSalary=20;
        Worker worker=new Worker();
        worker.name="wang";
        worker.day=20;
        worker.salary=100;
        System.out.println("经理"+manager.name+"的工资为："+manager.computeSalary());
        System.out.println("销售人员"+salesman.name+"的工资为："+salesman.computeSalary());
        System.out.println("工人"+worker.name+"的工资为："+worker.computeSalary());
    }
}
